package com.lill.workflow.service.impl;

import com.lill.workflow.dao.IWorkflowStepHistoryDao;
import com.lill.workflow.model.PsApproveVo;
import com.lill.workflow.model.WorkflowStepHistoryModel;
import com.lill.workflow.service.WorkflowStepHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Dao
 *
 * @author lill
 * @date 2019-05-26 12:05:20
 */
@Service("workflowStepHistoryService")
public class WorkflowStepHistoryServiceImpl implements WorkflowStepHistoryService {
    
    @Autowired
    public IWorkflowStepHistoryDao workflowStepHistoryDao;


    public List<PsApproveVo> queryApprove(Map<String, Object> param){
        return workflowStepHistoryDao.queryApprove(param);
    }

    public WorkflowStepHistoryModel queryObject(String id) {
        return workflowStepHistoryDao.queryObject(id);
    }

    public List<WorkflowStepHistoryModel> queryList(Map<String, Object> map) {
        return workflowStepHistoryDao.queryList(map);
    }

    public int queryTotal(Map<String, Object> map) {
        return workflowStepHistoryDao.queryTotal(map);
    }

    public int save(WorkflowStepHistoryModel seckillOrderAddr) {
        return workflowStepHistoryDao.save(seckillOrderAddr);
    }

    public int update(WorkflowStepHistoryModel seckillOrderAddr) {
        return workflowStepHistoryDao.update(seckillOrderAddr);
    }

    public int delete(Integer id) {
        return workflowStepHistoryDao.delete(id);
    }

    public int deleteBatch(Integer[] ids) {
        return workflowStepHistoryDao.deleteBatch(ids);
    }

    @Override
    public List<WorkflowStepHistoryModel> queryListByNumber(Map<String, Object> hashMap) {
        return workflowStepHistoryDao.queryListByNumber(hashMap);
    }

    /**
     * 获取最新的审核信息
     * @param param
     * @return
     */
    @Override
    public WorkflowStepHistoryModel queryLastOne(Map<String, Object> param){
        return workflowStepHistoryDao.queryLastOne(param);
    }
}
